Ext.define("wmf.store.product.channel", {
    extend: "Ext.data.Store",
    model: "wmf.model.channel.channel",
	requires: [
	],
	rootVisible: true,
	autoLoad: true,
	pageSize: 20,
    proxy: {
        type: 'ajax',
        url: 'channel/getChannelList.do',
        reader: {
            type: 'json',
            root: 'list'
        }
    },
    listeners : {  
        beforeload : function(store, operation) {  
            var params = {
            	start: 0,
            	limit: 9999
            };  
            store.proxy.extraParams = {};
       		Ext.apply(store.proxy.extraParams, params);
        },
        load: function(store, records, successful, eOpts){
        	if(successful)
        		store.insert(0, {cmccChannelId: '空', id: '', carrier: '3', status: '1'});
        }  
    },
	storeId: 'product.channel'
});